Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TAS-3080] 🚸 Enhance search behavior #2018

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

AuroraHuang22
Copy link
Contributor

2025-01-16.7.53.08.mp4

Copy link

search bar revamp

AuroraHuang22 added a commit that referenced this pull request Jan 16, 2025
'rounded-[0px] desktop:rounded-[10px]',
'transition-[width]',
'duration-[5000]',
'duration-[300]',
'ease-in-out',
]"
>
<IconSearch />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this icon clickable so that it also serve as the open/submit button if people can't press enter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have submit button when open
截圖 2025-01-22 下午6 47 29

this.randomKeywords?.[0] || this.$t('gutenberg_search_placeholder');
this.$emit('input', fallbackKeyword);
handleInput(event) {
this.currentSearchQuery = event.target.value;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to set currentSearchQuery explicitly in @input if it is in v-model

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nwingt added a commit that referenced this pull request Jan 22, 2025
nwingt added a commit that referenced this pull request Jan 23, 2025
'h-full',
isSearchOpen && 'pl-[16px] pr-[4px]',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
isSearchOpen && 'pl-[16px] pr-[4px]',
{ 'pl-[16px] pr-[4px]': isSearchOpen },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AuroraHuang22 AuroraHuang22 requested a review from nwingt January 23, 2025 03:23
@williamchong williamchong merged commit be21436 into likecoin:develop Jan 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants